/**
 * @license Copyright (c) 2003-2019, CKSource - Frederico Knabben. All rights reserved.
 * For licensing, see https://ckeditor.com/legal/ckeditor-oss-license
 */

CKEDITOR.editorConfig = function (config) {
    // Define changes to default configuration here. For example:
    // config.language = 'fr';
    // config.uiColor = '#AADC6E';
    config.baseFloatZIndex = 19892000;
//
//     config.pasteFilter=null;
//     config.allowedContent = true;
//
//
// //保证word导入格式
//     config.pasteFromWordRemoveFontStyles = false;
//     config.pasteFromWordRemoveStyles = false;
// //是否强制复制来的内容去除格式
//     config.forcePasteAsPlainText =false; //不去除

    // 图片上传配置
    config.image_previewText = ' ';  // 清除图片预览的文字
    config.filebrowserImageUploadUrl = "/upload/ckEditorUpload";  // 图片上传url

    // 操作按钮布局配置
    config.toolbarGroups = [
        { name: 'document', groups: [ 'mode', 'document', 'doctools' ] },
        { name: 'clipboard', groups: [ 'clipboard', 'undo' ] },
        { name: 'editing', groups: [ 'find', 'selection', 'spellchecker', 'editing' ] },
        { name: 'forms', groups: [ 'forms' ] },
        { name: 'basicstyles', groups: [ 'cleanup', 'basicstyles' ] },
        { name: 'paragraph', groups: [ 'list', 'indent', 'blocks', 'align', 'bidi', 'paragraph' ] },
        { name: 'links', groups: [ 'links' ] },
        { name: 'insert', groups: [ 'insert' ] },
        '/',
        { name: 'styles', groups: [ 'styles' ] },
        { name: 'colors', groups: [ 'colors' ] },
        { name: 'tools', groups: [ 'tools' ] },
        { name: 'others', groups: [ 'others' ] },
        { name: 'about', groups: [ 'about' ] }
    ];

    // 移除的按钮
    config.removeButtons = 'Templates,Copy,Cut,Paste,PasteText,PasteFromWord,Html5audio,Html5video,Flash,Iframe';
};
